package com.direct.domian;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 交接单
 * 
 * @author Administrator
 * 
 */

public class Transfer {

	private String id;
	private Truck truck;
	private Driver driver;
	// 创建操作员
	private Employee operator;
	// 流水号
	private String serial;
	// 起点配送点
	private Distribution startPoint;
	// 终点配送点
	private Distribution endPoint;
	// 出发时间
	private Date startTime;
	// 到达时间
	private Date arriveTime;
	// 状态
	private Integer state;
	// 路线
	private String road;
	// 包含的交接单
	private Set bills = new HashSet(0);

	public Transfer() {
	}

	public Transfer(String id) {
		this.id = id;
	}

	public Transfer(String id, Truck truck, Driver driver, Employee operator,
			String serial, Distribution startPoint, Distribution endPoint,
			Date startTime, Date arriveTime, Integer state, String road,
			Set bills) {
		super();
		this.id = id;
		this.truck = truck;
		this.driver = driver;
		this.operator = operator;
		this.serial = serial;
		this.startPoint = startPoint;
		this.endPoint = endPoint;
		this.startTime = startTime;
		this.arriveTime = arriveTime;
		this.state = state;
		this.road = road;
		bills = bills;
	}

	public Date getArriveTime() {
		return arriveTime;
	}

	public Driver getDriver() {
		return driver;
	}

	public Distribution getEndPoint() {
		return endPoint;
	}

	public String getId() {
		return id;
	}

	public Employee getOperator() {
		return operator;
	}

	public String getRoad() {
		return road;
	}

	public String getSerial() {
		return serial;
	}

	public Distribution getStartPoint() {
		return startPoint;
	}

	public Date getStartTime() {
		return startTime;
	}

	public Integer getState() {
		return state;
	}

	public Set getbills() {
		return bills;
	}

	public Truck getTruck() {
		return truck;
	}

	public void setArriveTime(Date arriveTime) {
		this.arriveTime = arriveTime;
	}

	public void setDriver(Driver driver) {
		this.driver = driver;
	}

	public void setEndPoint(Distribution endPoint) {
		this.endPoint = endPoint;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setOperator(Employee operator) {
		this.operator = operator;
	}

	public void setRoad(String road) {
		this.road = road;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public void setStartPoint(Distribution startPoint) {
		this.startPoint = startPoint;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public void setbills(Set bills) {
		bills = bills;
	}

	public void setTruck(Truck truck) {
		this.truck = truck;
	}

}